﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using System.Xml;

namespace PosrednikStoritev
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]// (Namespace="PosrednikStoritev")]
    public interface IPosrednik
    {
        [OperationContract]
        [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Wrapped, ResponseFormat = WebMessageFormat.Json)]
        string[] Sinf_StukProg();

        [OperationContract]
        [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Wrapped, ResponseFormat = WebMessageFormat.Json)]
        string[] Sinf_UMNews();

        [OperationContract]
        [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Wrapped, ResponseFormat = WebMessageFormat.Json)]
        string[] Sinf_Vreme(string mesto);

        [OperationContract]
        [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Wrapped, ResponseFormat = WebMessageFormat.Json)]
        string[] Sinf_SoumNews();

        [OperationContract]
        [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Wrapped, ResponseFormat = WebMessageFormat.Json)]
        string[] Sinf_FeriNews();

        [OperationContract]
        [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Wrapped, ResponseFormat = WebMessageFormat.Json)]
        string[] Sinf_FeriForum();

        [OperationContract]
        [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Wrapped, ResponseFormat = WebMessageFormat.Json)]
        string[] Sinf_FeriZagovori();
    }

    //[DataContract]
    ////public class CompositeType
    ////{
    ////    bool boolValue = true;
    ////    string stringValue = "Hello ";

    ////    [DataMember]
    ////    public bool BoolValue
    ////    {
    ////        get { return boolValue; }
    ////        set { boolValue = value; }
    ////    }

    ////    [DataMember]
    ////    public string StringValue
    ////    {
    ////        get { return stringValue; }
    ////        set { stringValue = value; }
    ////    }
    ////}
}
